
<div class="noidung">
    <?php $urlbtnxem = 'http://chomoionline.com/icon/btnxem.PNG'; ?>
    <div style="padding-left: 0px; width: 100%">
        <div class="colleft">
            <?php $this->renderPartial('commercial'); ?>
        </div>
        <div class="colright" style="margin: 0px">
            <div style="margin-left: 7px; width: 100%">
                <?php
                if (isset(Yii::app()->request->cookies['idoanluat']->value)) {
                    $cityID = Yii::app()->request->cookies['idoanluat']->value;
                } else {
                    $cityID = 30;
                }
                $sql = 'SELECT p.id,p.tencongty, p.website, p.logo, p.email, p.fax, p.phone, p.theluatsu, p.hovaten, p.chungchihanhnghe, d.name
                        FROM  `parner` p 
                        INNER JOIN `doanluatsu` d ON p.doanluatsu = d.id  
                        where p.flag=1 and p.doanluatsu="' . $cityID . '" order by p.id desc' .
                        ' LIMIT 0 , 300';

                $dbCommand = Yii::app()->db->createCommand($sql);
                $produc1 = $dbCommand->queryAll();
                
                $css = "bgtopic340";
                $dem = null;
                if (!empty($category)) {
                    $dem = $category->catename;

                    if (strlen($dem) >= 60) {
                        $css = "bgtopic600";
                    } else if (strlen($dem) >= 39) {
                        $css = "bgtopic500";
                    }
                }
         
                ?>


                <div class="bgtopic340">
                    <div class="topic_title">
                        Danh sách tổng hợp
                    </div>
                </div>


                <?php
                require_once(Yii::getPathOfAlias('webroot').'/protected/views/layouts/convertvn.php'); 
               
                if (!empty($produc1)) {
                    ?>
                    <ul id="itemContainer0" style="list-style-type: none; margin-left: -40px">
                        <?php
                        foreach ($produc1 as $item) {
                            ?>
                            <li>
                                <div style="float: left;width: 135px; height: 135px">
                                    <a href="<?php echo Yii::app()->request->baseUrl.'/luat-su/'.$item['id'] .'/'.  cv2urltitle($item['hovaten'])?>" title="<?php echo $item['hovaten'] ?>">
                                        <img src="<?php echo Yii::app()->request->baseUrl.'/upload/avata/'.$item['logo']; ?>" width="100px" height="100px"></a>
                                </div>
                                <div>
                                    <div>
                                        <b>Luật sư:</b> <a href="<?php echo Yii::app()->request->baseUrl.'/luat-su/'.$item['id'].'/'.  cv2urltitle($item['hovaten']) ?>"><b style="color: #024080"><?php echo $item['hovaten'] ?></b></a>
                                    </div>
                                    <div>
                                        <b>Điện thoại:</b> <?php echo $item['phone'] ?>
                                    </div>
                                    <div>
                                        <b>Thẻ luật sư số:</b> <b style="color: #8a1f11"> <?php echo $item['theluatsu'] ?></b>
                                    </div>
                                    <div>
                                        <b>Chứng chỉ ngành nghề số:</b> <b style="color: #8a1f11"><?php echo $item['chungchihanhnghe'] ?></b>
                                    </div>
                                    <div>
                                        <b>Đoàn luật sư:</b> <?php echo $item['name'] ?>
                                    </div>
                                    <div>
                                        <b>Tổ chức hành nghề:</b> <a href="<?php echo $item['website'] ?>" title="<?php echo $item['tencongty'] ?>"><b style="color: #024080"><?php echo $item['tencongty'] ?></b></a>
                                    </div>
                                </div>
                                <div class="clear"></div>
                            </li>
                            <?php
                        }
                        ?>
                    </ul>
                    <?php
                }
                ?>

                <div class="clear"></div>
                <div class="holder0"></div>


                <div class="clear"></div>



            </div>
        </div>
    </div>

    <div style="clear: both; padding-bottom: 10px"></div>
</div>


